import os
import pathlib
import subprocess

MODULE_PATH = pathlib.Path(os.path.abspath(__file__)).parent
UI_FILE = MODULE_PATH.joinpath("ui_resource/main_window.ui")
UI_PYFILE = MODULE_PATH.joinpath("ui_resource/main_window.py")

#PYSIDE6UIC_EXE = r"C:\Users\Work\AppData\Local\Programs\Python\Python313\Scripts\pyside6-uic.exe"
PYSIDE6UIC_EXE = r"C:\Users\Work\AppData\Local\Programs\Python\Python313\Scripts\pyside6-uic.exe"

subprocess.run([PYSIDE6UIC_EXE, "-o", UI_PYFILE, UI_FILE])